From 36cc26dc4b94fab93ef4a844ae483b5eebb00a1a Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 11 Oct 2009 01:50:09 +0000 Subject: [PATCH] Use description instead of shortnmae when -Sn. --- gpsbabel/lmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/lmx.c b/gpsbabel/lmx.c index 69b041a16..f40762b78 100644 --- a/gpsbabel/lmx.c +++ b/gpsbabel/lmx.c @@ -77,7 +77,7 @@ lmx_print(const waypoint *wpt) { gbfprintf(ofd, " \n"); if (wpt->shortname) { - lmx_write_xml(4, "lm:name", wpt->shortname); + lmx_write_xml(4, "lm:name", global_opts.synthesize_shortnames ? wpt->description : wpt->shortname); } if (wpt->description) { lmx_write_xml(4, "lm:description", wpt->description); -- 2.30.2